//
//  Contact.m
//  OC05_NSArray_NSDictionary_NSSet
//
//  Created by dllo on 16/5/26.
//  Copyright © 2016年 Rain. All rights reserved.
//

#import "Contact.h"

@implementation Contact
-(instancetype)initWithName:(NSString *)name
            withPhoneNumber:(NSInteger)phoneNumber {
    self = [super init];
    if(self){
        _name = name;
     //   _gender = gender;
        _phoneNumber = phoneNumber;
     //   _address = address;
     //   _group = group;
     //   _age = age;
    }
    return self;
}
+(instancetype)ContactWithName:(NSString *)name
               withPhoneNumber:(NSInteger)phoneNumber {
    Contact *con = [[Contact alloc] initWithName:name withPhoneNumber:phoneNumber];
    return con;
}
-(void)contactMessage{
    NSLog(@"姓名:%@ 性别:%@ 电话号码:%ld 地址:%@ 分组:%@ 年龄:%ld",_name,_gender,_phoneNumber,_address,_group,_age);
}
//-(NSString *)description{
//    
//    return
//}


@end
